<template>
  <div @click="show">foo</div>
</template>

<script>
export default {
  methods: {
    show() {
      alert(1);
    }
  }
};
</script>

<style>
</style>